package com.cmfi.domain;

import java.time.Instant;

import lombok.Data;

/**
 * 装配质量
 */
@Data
public class AssembleQuality {

	private Long id;

	// 装配质量
	private String serialNum;

	// 检查工位
	private String workStation;

	// 检查人
	private String examiner;

	private String partType;

	private String quality;

	private String qualityCodeLevelOne;

	private String qualityCodeLevelTwo;

	private String qualityCodeLevelThree;

	private String description;

	private Instant createTime;

	private Instant updateTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getSerialNum() {
		return serialNum;
	}

	public void setSerialNum(String serialNum) {
		this.serialNum = serialNum;
	}

	public String getWorkStation() {
		return workStation;
	}

	public void setWorkStation(String workStation) {
		this.workStation = workStation;
	}

	public String getExaminer() {
		return examiner;
	}

	public void setExaminer(String examiner) {
		this.examiner = examiner;
	}

	public String getPartType() {
		return partType;
	}

	public void setPartType(String partType) {
		this.partType = partType;
	}

	public String getQuality() {
		return quality;
	}

	public void setQuality(String quality) {
		this.quality = quality;
	}

	public String getQualityCodeLevelOne() {
		return qualityCodeLevelOne;
	}

	public void setQualityCodeLevelOne(String qualityCodeLevelOne) {
		this.qualityCodeLevelOne = qualityCodeLevelOne;
	}

	public String getQualityCodeLevelTwo() {
		return qualityCodeLevelTwo;
	}

	public void setQualityCodeLevelTwo(String qualityCodeLevelTwo) {
		this.qualityCodeLevelTwo = qualityCodeLevelTwo;
	}

	public String getQualityCodeLevelThree() {
		return qualityCodeLevelThree;
	}

	public void setQualityCodeLevelThree(String qualityCodeLevelThree) {
		this.qualityCodeLevelThree = qualityCodeLevelThree;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Instant getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Instant createTime) {
		this.createTime = createTime;
	}

	public Instant getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Instant updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "AssembleQuality [id=" + id + ", serialNum=" + serialNum + ", workStation=" + workStation + ", examiner="
				+ examiner + ", partType=" + partType + ", quality=" + quality + ", qualityCodeLevelOne="
				+ qualityCodeLevelOne + ", qualityCodeLevelTwo=" + qualityCodeLevelTwo + ", qualityCodeLevelThree="
				+ qualityCodeLevelThree + ", description=" + description + ", createTime=" + createTime
				+ ", updateTime=" + updateTime + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((createTime == null) ? 0 : createTime.hashCode());
		result = prime * result + ((description == null) ? 0 : description.hashCode());
		result = prime * result + ((examiner == null) ? 0 : examiner.hashCode());
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((partType == null) ? 0 : partType.hashCode());
		result = prime * result + ((quality == null) ? 0 : quality.hashCode());
		result = prime * result + ((qualityCodeLevelOne == null) ? 0 : qualityCodeLevelOne.hashCode());
		result = prime * result + ((qualityCodeLevelThree == null) ? 0 : qualityCodeLevelThree.hashCode());
		result = prime * result + ((qualityCodeLevelTwo == null) ? 0 : qualityCodeLevelTwo.hashCode());
		result = prime * result + ((serialNum == null) ? 0 : serialNum.hashCode());
		result = prime * result + ((updateTime == null) ? 0 : updateTime.hashCode());
		result = prime * result + ((workStation == null) ? 0 : workStation.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AssembleQuality other = (AssembleQuality) obj;
		if (createTime == null) {
			if (other.createTime != null)
				return false;
		} else if (!createTime.equals(other.createTime))
			return false;
		if (description == null) {
			if (other.description != null)
				return false;
		} else if (!description.equals(other.description))
			return false;
		if (examiner == null) {
			if (other.examiner != null)
				return false;
		} else if (!examiner.equals(other.examiner))
			return false;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (partType == null) {
			if (other.partType != null)
				return false;
		} else if (!partType.equals(other.partType))
			return false;
		if (quality == null) {
			if (other.quality != null)
				return false;
		} else if (!quality.equals(other.quality))
			return false;
		if (qualityCodeLevelOne == null) {
			if (other.qualityCodeLevelOne != null)
				return false;
		} else if (!qualityCodeLevelOne.equals(other.qualityCodeLevelOne))
			return false;
		if (qualityCodeLevelThree == null) {
			if (other.qualityCodeLevelThree != null)
				return false;
		} else if (!qualityCodeLevelThree.equals(other.qualityCodeLevelThree))
			return false;
		if (qualityCodeLevelTwo == null) {
			if (other.qualityCodeLevelTwo != null)
				return false;
		} else if (!qualityCodeLevelTwo.equals(other.qualityCodeLevelTwo))
			return false;
		if (serialNum == null) {
			if (other.serialNum != null)
				return false;
		} else if (!serialNum.equals(other.serialNum))
			return false;
		if (updateTime == null) {
			if (other.updateTime != null)
				return false;
		} else if (!updateTime.equals(other.updateTime))
			return false;
		if (workStation == null) {
			if (other.workStation != null)
				return false;
		} else if (!workStation.equals(other.workStation))
			return false;
		return true;
	}

}
